import { GBox } from "../../../../../com/mui/containers/GBox";
import { GBoxDirection } from "../../../../../com/mui/containers/globalVariable/GBoxDirection";
import { TaskTreeBranch } from "./TaskTreeBranch";
//class TaskTree
    
    export  class TaskTree /* flash.display.Sprite */
    {
        constructor()
        {
            
            this._bodyList = new GBox();
            this._bodyList.direction = GBoxDirection.VERTICAL;
            addChild(this._bodyList);
            return;
        }

        public get bodyList(): GBox
        {
            return this._bodyList;
        }

        public /* override */ get height(): number
        {
            var loc4=null;
            var loc1=0;
            var loc2=this._bodyList.numChildren;
            var loc3=0;
            while (loc1 < loc2) 
            {
                loc4 = this._bodyList.getChildAt(loc1) as TaskTreeBranch;
                loc3 = loc3 + loc4.height;
                ++loc1;
            }
            return loc3;
        }

        /* internal */ /* var */_bodyList: GBox;
    }
